﻿<%template _header%>
<%namespace YouHP.Model%>
<%namespace YouHP.BLL%>
<%namespace YouHP.Model.Group%>
<%namespace YouHP.Utility%>
<%namespace System%>
<%namesapce System.Collections.Generic%>

<div class="layout-cols2">
	<div class="col1">		
	
<!-- 处方医生信息开始-->	
<%csharp%>TempUrl = ModuleCtrl.Header4("DoctorInfo","处方医生信息",false,false); <%/csharp%>
{TempUrl}
<div class="doctorinfo">
  <table cellpadding="0" cellspacing="0" border="0">
  <tr>
   <td width="70" align="center">
        <!--<%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + _doctorInfo.Id;<%/csharp%>
         <a href="{this.GetUrl(TempUrl)}" target="_blank">
            <img class="avatar" width="80" height="80" src="{UserBLL.Instance.GetUserInfo(_doctorInfo.Id).Avatar}"/>
         </a>-->
         <img class="avatar" width="124" height="83" src="/support/alpha/images/doctor.JPG"/>
         
         
   </td>
   
   <td width="20"></td>
   <td valign="top">
    <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + _doctorInfo.Id;<%/csharp%>
        <!--<p><a href="{this.GetUrl(TempUrl)}" target="_blank"><b><font color="green">{_doctorInfo.Name}</font></b></a></p>-->
         <p><b><font color="green">{_doctorInfo.Name}</font></b></p>
        <p>
        医院：{_doctorInfo.Hospital} 
        </p>
        <p>
        处方数量：{_doctorInfo.PrescriptionCount}
        </p>
        <p>
        平均得分：{_doctorInfo.PrescriptionAverageScore}
        </p>
   </td>
   </tr>
   </table>
</div>

<style type="text/css" media="screen">
    
    .doctorinfo
    {
        padding-left:50px;
    }
    .doctorinfo table
    {
        margin:0 auto;
    }
    .doctorinfo td
    {
	    padding:0px;
    }
    
    .doctorinfo p
    {
	    border-bottom:1px solid #E1E4E6;
	    margin-bottom:10px;
    }
    
    .plist
    {
    	margin-left: 10px;
    }
    
    .presDiv
    {
    	background: #E1E3E3;
    	margin: 0px 0px 0px 0px;
    	padding: 5px 2px 5px 15px;
    	display:none;
    	height: 60px;
    }
    
    .presDescSpan
    {
    	color:#777777;
        font: bold 8px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
    }
    
    .presDescLine
    {
    	padding: 3px 2px 3px 2px;
    }
</style>

<script language="javascript">

function showPrescription(id)
{
    if (_$('presDiv'+id).style.display == 'block')
    {
        _$('presDiv'+id).style.display = 'none';
        _$('folder_plus'+id).src = "/support/alpha/images/folder_plus.gif";
    }
    else
    {
        _$('presDiv'+id).style.display = 'block';
        _$('folder_plus'+id).src = "/support/alpha/images/folder_minus.gif";
    }
}

</script>

<%csharp%>TempUrl = ModuleCtrl.Footer("DoctorInfo"); <%/csharp%>
{TempUrl}
<!-- 处方医生信息结束-->


<!-- 处方医生开具中药方列表开始-->
<%csharp%>TempUrl = ModuleCtrl.Header4("DoctorPrescriptionList","医生开具药方列表",false,false); <%/csharp%>
{TempUrl}

    <%csharp%> if(_prescriptionList.Count == 0){ <%/csharp%>

		<div class="content">
			<p><b>找不到相应的中药方!!</b></p>
		</div>

	<%csharp%> } else { <%/csharp%>
	
		<table border="0" cellpadding="0" cellspacing="0" class="plist">
	        <tr style="height:30px;"> 
                <td width="30%"><b class="tdtitle">药方名称</b></td>
                <td width="20%"><b class="tdtitle">药方评分</b></td>
                <td width="50%" height="26"><b class="tdtitle">使用者</b></td>
            </tr>
             
            <%csharp%> string str="tr_bgcolor_0"; 
                       foreach(PrescriptionInfo item in _prescriptionList) { <%/csharp%>
                       
			<tbody>
			    <tr height="60" class="{str}">
				    <td>
				        <a href="javascript:showPrescription({item.Id});">
				        <img id="folder_plus{item.Id}"  src="/support/alpha/images/folder_plus.gif" height="16" width="16">
				        <font color=blue>{item.Name}</font>
				        </a>
				        
				        <%csharp%>if (item.IsClassic) { <%/csharp%>
				            <img src="/support/alpha/images/star.gif" height="16" width="16" alt="该药方已被管理员设置为经典药方"/>
				        <%csharp%> } <%/csharp%>
				    </td>
					<td>{item.AverageScore}</td>
						
                    <td>
						<%csharp%>foreach(int userId in item.UserIds){ <%/csharp%>
						 <%csharp%> UserInfo userInfo = UserBLL.Instance.GetUserInfo(userId);<%/csharp%>
						  <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + userInfo.Id;<%/csharp%>
						    <a href="{this.GetUrl(TempUrl)}" target="_blank">
						        <font color="blue">{userInfo.UserName}</font>
                            </a>
						<%csharp%>}<%/csharp%>
					</td>
						
				</tr>
				
				<tr>
				    <td colspan="3" class="embeded">
				        <div id="presDiv{item.Id}" class="presDiv"> 
				            <div class="presDescLine"><span class="presDescSpan">药方说明:</span> <span style="margin-left:8px;">{item.Description}</span></div>
				            <div class="presDescLine"><span class="presDescSpan">药方评价:</span> <span style="margin-left:8px;">{item.Comment}</span> </div>
				         </div>
				         
				    </td> 
				</tr>
			</tbody>
			
			<%csharp%>
			if(str=="tr_bgcolor_0") str="tr_bgcolor_1";
			else str="tr_bgcolor_0";
			}<%/csharp%>
		</table>				
				
	<%csharp%> } <%/csharp%>
	
<%csharp%>TempUrl = ModuleCtrl.Footer("DoctorPrescriptionList"); <%/csharp%>
{TempUrl}
		
		<div class="box">
			<div class="content">
				<div class="pages">
					{_pagingString}
				</div>
			</div>
		</div>
		
	</div>
<!-- 处方医生开具中药方列表结束-->


	
	<div class="col2">
	</div>
		
</div>

<%template _footer%>			